package cn.jh.common.utils;


public interface Constss {

    String ERROR_VERI_CODE = "000002";

    String ERROR_PARAM = "000001";

    String ERROR_PASS_ERROR = "000003";

    String ERROR_PAY_PASS = "000004";

    String ERROR_TOKEN = "000005";

    String ERROR_CARD_FAILED = "000006";


    String ERROR_MERCHANT_NOT_EXISTED = "000777";

    String ERROR_MERCHANT_RATE_NOT_EXISTED = "000771";

    String REDIRECT_CARD = "77";

    String ERROR_USER_NOT_EXISTED = "000007";

    String ERROR_USER_HAS_REGISTER = "000008";

    String ERROR_CARD_ERROR = "000009";

    /**
     * 支付请求错误
     */
    String ERROR_AMOUNT_ERROR = "000010";

    String ERRRO_ORDER_HAS_CHECKED = "000011";

    String ERROR_USER_BLACK = "000012";

    String ERROR_USER_NO_REGISTER = "000013";

    /**
     * 提现下单错误
     */
    String ERROR_WITHDRAW_ORDER_FAIL = "000014";

    String ERROR_USER_NO_DEFAULT_CARD = "000015";

    String ERROR_WITHDRAW_REQ_FAILD = "000016";

    String ERROR_WITHDRAW_BALANCE_NO_ENOUGH = "000017";

    String ERROR_PAYMENT_NOT_EXIST = "000019";

    String OUT_TRADE_TIME = "000025";

    /**
     * 该笔订单已经提交
     */
    String ERROR_WITHDRAW_ORDER_HASREQ = "000020";

    /**
     * 签名无效
     */
    String ERROR_SIGN_NOVALID = "000018";

    String SUCCESS = "000000";      // 已成功，弹窗提示

    String FALIED = "999999";      // 已失败，弹窗提示

    String UNKNOW = "222222";      // 未知异常

    String WAIT_CHECK = "666666";

    String PROCESSING = "111111";      // 处理中，弹窗提示

    String SECRETKEY = "tq-20170822";

    String RESULT = "result";

    String STATUS_VALID = "0";

    String STATUS_INVALID = "1";

    String RESP_CODE = "resp_code";


    String ERROR_CODE = "err_code";

    String ERROR_MSG = "err_msg";

    String RESP_MESSAGE = "resp_message";

    String REDIRECT_URL = "redirect_url";

    /**
     * 品牌类型
     */
    String BRAND_MAIN = "0";

    String BRAND_OTHER = "1";

    /**
     * 银行卡的默认状态
     */
    String CARD_DEFAULT = "1";

    String CARD_NOT_DEFAULT = "0";

    /**
     * 充值/支付/代付的订单状态
     */
    String ORDER_READY = "0";

    String ORDER_SUCCESS = "1";

    String ORDER_CANCEL = "2";

    String ORDER_FALIED = "5";

    String ORDER_INIT = "9";           // 初始化

    // 提现订单等待查询
    String ORDER_WAITING_QUERY = "3";

    // 等待清算
    String ORDER_WAITING_CLEARING = "4";

    /**
     * 充值/支付/提现/退款的类型标识
     */
    String ORDER_TYPE_TOPUP = "0";

    String ORDER_TYPE_PAY = "1";

    String ORDER_TYPE_WITHDRAW = "2";

    String ORDER_TYPE_REFUND = "3";

    String ORDER_TYPE_BILL = "4";

    String ORDER_TYPE_WZDJ = "5";

    String ORDER_TYPE_WZDJ_PAY = "6";

    /**
     * 积分类型
     */
    String COIN_TYPE_ADD = "0";

    String COIN_TYPE_SUB = "1";

    /**
     * 订单的结算类型
     */
    String CLEARING_T_0 = "0";

    String CLEARING_T_1 = "1";

    String CLEARING_D_0 = "2";

    String CLEARING_D_1 = "3";

    /**
     * 活动错误信息
     */
    // 用户已经获取
    String MARKETING_HAS_ACQUIRE = "000021";

    // 交易已经关闭
    String MARKETING_ACTIVITY_CLOSE = "000022";

    // 当前角色不能享受返现
    String MARKETING_NO_AUTH = "000023";

    /**
     * 返现金额超出设置的最大值
     */
    String MARKETING_OUT_MAX_MONEY = "000024";

    /**
     * 普通消费者
     **/
    String NORMAL_USER = "0";

    /***/
    String AGENT_USER = "1";

    /**
     * 提交的数据错误
     */
    String POST_DATA_ERROR = "888888";

    public static boolean isSuccess(String respCode) {
        return SUCCESS.equals(respCode);
    }
}
